package com.agendamobil;

import java.util.Date;

import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.text.format.DateFormat;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class NuevoActivity extends Activity implements OnClickListener{

	Dialog dialog;
	View btnInvitar;
	
	 public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.nuevo);	 
	        btnInvitar = findViewById(R.id.button4);
	        btnInvitar.setOnClickListener(this);
	 }
	
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		if (btnInvitar == v) {
			createDialog();
			// setContentView(R.layout.nuevo);
		}
	}
	public void createDialog() {
		// set up dialog
		dialog = new Dialog(this);
		dialog.setContentView(R.layout.invitados);
		dialog.setTitle("Participantes");
		dialog.setCancelable(true);
		// there are a lot of settings, for dialog, check them all out!

    	// now that the dialog is set up, it's time to show it
		dialog.show();
	}

}
